home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 3205 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.5 KB

  1. Path: comma.rhein.de!serpens!not-for-mail
  2. From: mlelstv@serpens.rhein.de (Michael van Elst)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Amiga Memory Map Needed! / ExecBase
  5. Date: 8 Feb 1996 16:05:23 +0100
  6. Organization: dis-
  7. Message-ID: <4fd3fj$548@serpens.rhein.de>
  8. References: <4f9itc$ld8@rock101.genie.net> <4facl8$ga0@brachio.zrz.TU-Berlin.DE> <wulfraedDMFxn6.L3y@netcom.com> <4fcnev$b3j@brachio.zrz.TU-Berlin.DE>
  9. NNTP-Posting-Host: serpens.rhein.de
  10.  
  11. rawneiha@hercules.zrz.TU-Berlin.DE (Philipp Boerker) writes:
  12.  
  13. >It will have it from an fixed address of course, but this address could 
  14. >vary from computer to computer, from OS version to OS version. No user code
  15. >should rely on fixed addresses or other hardware. Supervisor code has to.
  16. >UNIX shows how to do it.
  17.  
  18. Rubbish. UNIX uses trap instructions to call system routines. If every
  19. library function would use a trap this would be abysmally slow. That's
  20. why shared libraries in UNIX use a different method. Most even use fixed
  21. addresses for library entry points.
  22.  
  23. The only method that avoids any absolute address would be to pass a pointer
  24. to every new task, which wouldn't be consistent (interrupts still have to
  25. fetch ExecBase from a fixed address) and requires extra magic (because the
  26. first task has to magically "know" the pointer). And all this just for
  27. aesthetics with not a single advantage in functionality.
  28.  
  29.  
  30. -- 
  31.                                 Michael van Elst
  32.  
  33. Internet: mlelstv@serpens.rhein.de
  34.                                 "A potential Snark may lurk in every tree."
  35.